﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>fullAvatarEditor</title>
    <script type="text/javascript" src="/scripts/swfobject.js"></script>
    <script type="text/javascript" src="/scripts/fullAvatarEditor.js"></script>
        <script type="text/javascript">
            swfobject.addDomLoadEvent(function () {
                var swf = new fullAvatarEditor("swfContainer", {
                    id: 'swf',
                    upload_url: '/portrait/upload?file_name=someone/{0}.jpg',
                    src_upload: 0
                }, function (msg) {
                    switch (msg.code) {
                        case 3:
                            if (msg.type == 1) {
                                alert("摄像头已准备就绪但用户未允许使用！");
                            }
                            else {
                                alert("摄像头被占用！");
                            }
                            break;
                    }
                }
                );
            });
    </script>
</head>
<body>
    <div class="panel panel-default" style="padding:15px 5px">
    <p id="swfContainer">
        本组件需要安装Flash Player后才可使用，请从<a href="http://www.adobe.com/go/getflashplayer">这里</a>下载安装。
    </p>
</div>
</body>
</html>
